cmake_minimum_required(VERSION 3.0.0)
project(test1 VERSION 0.1.0)

include(CTest)
enable_testing()

add_compile_options(-std=c++17)

find_package(Threads REQUIRED)
link_libraries( 
    Threads::Threads
    #/home/jiabao/open_source_libraries/demo_cc/make/use_so/lib/libpublic.so
    ${PROJECT_SOURCE_DIR}/lib/libpublic.so
)
add_executable(test1 
    main.cpp
)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

#并不需要LD_LIBRARY_PATH